package com.project.bean;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * 日志管理实体类
 */

@TableName("t_log")
public class LogBean {
    @TableId(value = "pk_logId")
    private int logId;
    /*** 日志内容 */
    @TableField("f_logContent")
    private String logContent;
    /*** 日期 */
    @TableField("f_logTime")
    private LocalDate logTime = LocalDate.now();

    public LogBean() {
    }

    public LogBean(String logContent) {
        this.logContent = logContent;
    }

    public int getLogId() {
        return logId;
    }

    public void setLogId(int logId) {
        this.logId = logId;
    }

    public String getLogContent() {
        return logContent;
    }

    public void setLogContent(String logContent) {
        this.logContent = logContent;
    }

    public LocalDate getLogTime() {
        return logTime;
    }

    public void setLogTime(LocalDate logTime) {
        this.logTime = logTime;
    }

    @Override
    public String toString() {
        return "LogBean{" +
                "logId=" + logId +
                ", logContent='" + logContent + '\'' +
                ", logTime=" + logTime +
                '}';
    }
}
